package com.hy.admin.service;

import com.hy.admin.entity.YangCoinEntity;
import com.hy.admin.helper.response.MemberYangCoinDetailResponse;
import com.hy.admin.helper.response.OrderResponse;
import com.hy.core.response.ServicesResult;

import java.util.List;

/**
 * Created by yangqq on 18/4/4.
 */
public interface YangCoinService {
    ServicesResult<OrderResponse> recharge(Long memberId, Long coinId);
    ServicesResult<Boolean> paySuccess(Long yangCoinOrderId) throws Exception;
    ServicesResult<Boolean> pay(Long courseOrderId, Long coinCount) throws Exception;
    ServicesResult<Boolean> payAnswer(Long memberId, Long questionId, Long coinCount) throws Exception;
    ServicesResult<List<MemberYangCoinDetailResponse>> detail(Long memberId, Integer pageNum, Integer pageSize);
    ServicesResult<List<YangCoinEntity>> list();
}
